import request from '@/utils/request'

//商户表查询列表
export function fetchList(query) {
  return request({
    url: '/bizUser/list',
    method: 'post',
    data: query
  })
}

//商户表查询详情
export function bizUserDetail(query) {
  return request({
    url: '/bizUser/get',
    method: 'post',
    data: query
  })
}

//商户表创建
export function bizUserAdd(query) {
  return request({
    url: '/bizUser/create',
    method: 'post',
    data: query
  })
}

//商户表更新
export function bizUserUpdate(query) {
  return request({
    url: '/bizUser/update',
    method: 'post',
    data: query
  })
}

//商户表删除
export function deleteBizUser(query) {
  return request({
    url: '/bizUser/delete',
    method: 'post',
    data: query
  })
}

//商户表修改密码
export function updatePassWord(query) {
  return request({
    url: '/bizUser/updatePassWord',
    method: 'post',
    data: query
  })
}

//商户充值
export function bizUserRecharge(query) {
  return request({
    url: '/bizUser/recharge',
    method: 'post',
    data: query
  })
}

//商户优惠券存据 查询列表
export function bizUserCouponList(query) {
  return request({
    url: '/bizUserCoupon/list',
    method: 'post',
    data: query
  })
}

//商户发放的优惠券 查询列表
export function bizUserGrantCouponList(query) {
  return request({
    url: '/bizUserGrantCoupon/list',
    method: 'post',
    data: query
  })
}

//商户后台充值记录 查询列表
export function bizUserRechargeList(query) {
  return request({
    url: '/bizUserRecharge/list',
    method: 'post',
    data: query
  })
}